package com.parenting.entities;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.parenting.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * <p>
 * 广场信息
 * </p>
 *
 * @author zcj
 * @since 2021-04-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("parenting_plaza_info")
@ApiModel(value = "PlazaInfo对象", description = "广场信息")
public class PlazaInfo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "状态 0:审核失败1:发布中2:审核中3:已发布")
    @TableField("STATUS")
    private Integer status;

    @ApiModelProperty(value = "类型 1:瞬间2:动态3求助")
    @TableField("PLAZA_TYPE")
    private Integer plazaType;

    @ApiModelProperty(value = "标题")
    @TableField("TITLE")
    private String title;

    @ApiModelProperty(value = "内容")
    @TableField("CONTENT")
    private String content;

    @ApiModelProperty(value = "地址")
    @TableField("ADDRESS")
    private String address;

    @ApiModelProperty(value = "经度")
    @TableField("LONGIT")
    private String longit;

    @ApiModelProperty(value = "维度")
    @TableField("LAT")
    private String lat;

    @ApiModelProperty(value = "分享数量")
    @TableField("SHARE_NUM")
    private Integer shareNum;

    @ApiModelProperty(value = "点赞数量")
    @TableField("LIKE_NUM")
    private Integer likeNum;

    @ApiModelProperty(value = "评价数量")
    @TableField("EVALUATE_NUM")
    private Integer evaluateNum;

    @ApiModelProperty(value = "浏览数量")
    @TableField("BROWSE_NUM")
    private Integer browseNum;

    @ApiModelProperty(value = "创建人头像")
    @TableField("CREATER_IMG")
    private String createrImg;

    @ApiModelProperty(value = "创建人昵称")
    @TableField("CREATER_NICKNAME")
    private String createrNickname;

    @ApiModelProperty(value = "不通过的原因")
    @TableField("NO_PASS_REASON")
    private String noPassReason;

    @TableField(exist = false)
    private List<Link> linkList;

}
